<h1>Phone List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Number</th>
      <th>Phone type</th>
      <th>Person</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($phone_list as $phone): ?>
    <tr>
      <td><a href="<?php echo url_for('phone/show?id='.$phone['id']) ?>"><?php echo $phone->getid() ?></a></td>
      <td><?php echo $phone->getnumber() ?></td>
      <td><?php echo $phone->getphone_type_id() ?></td>
      <td><?php echo $phone->getperson_id() ?></td>
      <td><?php echo $phone->getcreated_at() ?></td>
      <td><?php echo $phone->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('phone/new') ?>">New</a>
